package com.tt.mapper;

import com.tt.entity.bo.DepartmentBarBO;
import com.tt.entity.po.RawDepartment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tt.entity.vo.DepartmentBarVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;

/**
 * <p>
 * 原始数据表。数据包括 30省排放清单(department_id = 0)、中国分部门核算碳排放清单(province_id = 0) Mapper 接口
 * </p>
 *
 * @author TP
 * @since 2022-10-26 10:59:16
 */
@Mapper
public interface RawDepartmentMapper extends BaseMapper<RawDepartment> {

    /**
     * 各部门，里面的各种燃料排放
     */
    ArrayList<DepartmentBarBO> getDepartmentBar(@Param("beginYear") String beginYear,
                                               @Param("endYear") String endYear,
                                               @Param("provinceId") Integer provinceId,
                                                @Param("pId") Integer pId);
}
